import { reactive } from 'vue'
import { getOptionList } from '@/api/base/brand'
import { getArrivalOrderPageList } from '@/api/warehouse/arrival-order'

export function useDetail() {
  const status = reactive({
    saving: false,
    loading: false
  })

  const getDataList = async (data: any) => {
    return getArrivalOrderPageList(data)
  }

  const getBrandOptions = async () => {
    return getOptionList()
  }

  return { status, getDataList, getBrandOptions }
}
